package common

import (
	"log"
	"runtime"
)

func IsError(err error) {
	if err != nil {
		_, file, line, _ := runtime.Caller(1)
		log.Fatal(file, ":", line, " Error:", err.Error())
	}
}
